package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.CustomerFrom;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dell
 * @since 2021-12-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CustomerInfo对象", description="")
public class CustomerInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long customerId;

    @ApiModelProperty(value = "激活来源：0:wxmina,1:app,2:h5")
    private CustomerFrom activeFrom;

    @ApiModelProperty(value = "激活时间")
    private Date activacatedAt;

    @ApiModelProperty(value = "0:wxmina(微信小程序),1:app(APP),2:h5(h5网页),3:webkit(全澄通),4:h5Market(h5本地生活)")
    private CustomerFrom originFrom;

    @ApiModelProperty(value = "0:wxmina(微信小程序),1:app(APP),2:h5(h5网页),3:webkit(全澄通),4:h5Market(h5本地生活)")
    private CustomerFrom lastFrom;

    private String deviceInfo;

    private Boolean wxappApplied;

    private Boolean appApplied;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
